#include<stdio.h>
void print(int a)
{
	int b;
	for (b = 1; b <= a; b++)
	{
		int d;
		for (d = 1; d <= a; d++)
		{
			printf("%d*%d=%.2d ", d, b, d * b);
		}
		printf("\n");
	}

}
int main()

{
	int figure = 0;
	scanf_s("%d", &figure);
	print(figure);
	return 0;
}